package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

import lombok.Data;

/**
 * 消息信息表
 */
@Data
@TableName(value = "msg_member_info")
@ApiModel(value = "com-shycloud-mido-member-api-entity-MsgMemberInfo")
public class MsgMemberInfo {

	/** 主键 */
	@TableId(value = "id", type = IdType.UUID)
	@ApiModelProperty(value = "主键")
	private String id;
	/** 消息表ID */
	@TableField(value = "msg_id")
	@ApiModelProperty(value = "消息表ID")
	private String msgId;
	/** 发送方ID */
	@TableField(value = "from_id")
	@ApiModelProperty(value = "发送方ID")
	private String fromId;
	/** 接收方ID */
	@TableField(value = "to_id")
	@ApiModelProperty(value = "接收方ID")
	private String toId;
	/** 0未读1已读 */
	@TableField(value = "read_status")
	@ApiModelProperty(value = "0未读1已读")
	private String readStatus;
	/** 删除标记 */
	@TableField(value = "del_flag")
	@ApiModelProperty(value = "删除标记")
	private String delFlag;
	/** 创建人 */
	@TableField(value = "create_user")
	@ApiModelProperty(value = "创建人")
	private String createUser;
	/** 创建时间 */
	@TableField(value = "create_time")
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;
	/** 更新人 */
	@TableField(value = "update_user")
	@ApiModelProperty(value = "更新人")
	private String updateUser;
	/** 更新时间 */
	@TableField(value = "update_time")
	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updateTime;

	/** 消息类型：0文本1周报2IM3其他 */
	@TableField(value = "msg_type")
	@ApiModelProperty(value = "消息类型：0文本1周报2IM3其他 ")
	private String msgType;

	/** 消息类型：推送作业的数据 */
	@TableField(value = "homework_data")
	@ApiModelProperty(value = "推送作业的数据")
	private String homeworkData;

	public static final String COL_ID = "id";

	public static final String COL_MSG_ID = "msg_id";

	public static final String COL_FROM_ID = "from_id";

	public static final String COL_TO_ID = "to_id";

	public static final String COL_READ_STATUS = "read_status";

	public static final String COL_DEL_FLAG = "del_flag";

	public static final String COL_CREATE_USER = "create_user";

	public static final String COL_CREATE_TIME = "create_time";

	public static final String COL_UPDATE_USER = "update_user";

	public static final String COL_UPDATE_TIME = "update_time";
}